package com.xmtlxx.tms.domain.bo;

import com.xmtlxx.common.core.domain.BaseEntity;
import com.xmtlxx.common.core.validate.AddGroup;
import com.xmtlxx.common.core.validate.EditGroup;
import com.xmtlxx.tms.domain.vo.WaybillDtlVo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * 运单业务对象 t_waybill
 *
 * @author xmtlxx
 * @date 2022-08-15
 */

@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel("运单业务对象")
public class WaybillBo extends BaseEntity {

    /**
     * 运单ID
     */
    @ApiModelProperty(value = "运单ID")
    private String id;

    /**
     * 订单ID
     */
    @ApiModelProperty(value = "订单ID", required = true)
    @NotBlank(message = "订单ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private String orderId;

    /**
     * 运单号
     */
    @ApiModelProperty(value = "运单号", required = true)
    @NotBlank(message = "运单号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String waybillNo;

    /**
     * 承运商ID
     */
    @ApiModelProperty(value = "承运商ID", required = true)
    @NotBlank(message = "承运商ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private String carrierId;

    /**
     * 车次ID
     */
    @ApiModelProperty(value = "车次ID")
    private String scheduleId;

    /**
     * 车辆ID
     */
    @ApiModelProperty(value = "车辆ID")
    private String carId;

    /**
     * 车牌号
     */
    @ApiModelProperty(value = "车牌号")
    private String carNumber;

    /**
     * 驾驶员ID
     */
    @ApiModelProperty(value = "驾驶员ID")
    private String driverId;

    /**
     * 驾驶员
     */
    @ApiModelProperty(value = "驾驶员")
    private String driverName;

    /**
     * 派单时间
     */
    @ApiModelProperty(value = "派单时间")
    private Date dispatchTime;

    /**
     * 接单时间
     */
    @ApiModelProperty(value = "接单时间")
    private Date takeBillTime;

    /**
     * 取件时间
     */
    @ApiModelProperty(value = "取件时间")
    private Date takeTime;

    /**
     * 发车时间
     */
    @ApiModelProperty(value = "发车时间")
    private Date sendTime;

    /**
     * 派送时间
     */
    @ApiModelProperty(value = "派送时间")
    private Date deliverTime;

    /**
     * 送达时间
     */
    @ApiModelProperty(value = "送达时间")
    private Date arriveTime;

    /**
     * 作废时间
     */
    @ApiModelProperty(value = "作废时间")
    private Date cancelTime;

    /**
     * 状态
     */
    @ApiModelProperty(value = "状态 ")
    private String status;

    /**
     * 备注
     */
    @ApiModelProperty(value = "备注")
    private String memo;

    /**
     * 回单号
     */
    @ApiModelProperty(value = "回单号")
    private String receiptNo;

    /**
     * 回单附件
     */
    @ApiModelProperty(value = "回单附件")
    private String receiptPics;

    /**
     * 回单状态
     */
    @ApiModelProperty(value = "回单状态")
    private String receiptStatus;

    /**
     * 调度员ID
     */
    @ApiModelProperty(value = "调度员ID")
    private Long dispatcherId;

    /**
     * 调度员
     */
    @ApiModelProperty(value = "调度员")
    private String dispatcher;

    /**
     * 签收人
     */
    @ApiModelProperty(value = "签收人")
    private String signer;

    /**
     * 签收单位
     */
    @ApiModelProperty(value = "签收单位")
    private Long signDeptId;

    /**
     * 签收信息
     */
    @ApiModelProperty(value = "签收信息")
    private String signInfo;

    /**
     * 删除标识
     */
    @ApiModelProperty(value = "删除标识")
    private String delFlag;

    private List<WaybillDtlVo> items;

    /**
     * 体积
     */
    private BigDecimal volume;
    /**
     * 重量
     */
    private BigDecimal weight;
    /**
     * 数量
     */
    private Integer nums;
    /**
     * 到站时间
     */
    private Date reachTime;

    private List<String> statustr;

    /**
     * 搜索条件
     */
    private String pno;
    private String pname;
    private String region;
    private String orderNo;

    @ApiModelProperty("是否车辆")
    private String buss;

    private Long carrierDeptId;

    private Long pickupId;

    private Long storeDeptId;

    private String taskNo;
    /**
     * 物品日志
     */
    private String logType;
    private String logContent;

}
